package com.decent.ejfadmin.finance.response.dto;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author zhangchao
 * @date 2018/7/28 10:21
 */
@Data
public class SupplyCardBalanceDto implements Serializable {
    private static final long serialVersionUID = 4055632647705659561L;

    private String userAccount;

    private String userName;

    private Integer status;

    private Integer withdrawStatus;

    private String pmName;

    private BigDecimal balance;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder(100);
        sb.append("=\"").append(getUserAccount()).append("\"");
        sb.append(",=\"").append(getUserName()).append("\"");
        sb.append(",=\"").append(getStatus()).append("\"");
        sb.append(",=\"").append(StringUtils.trimToEmpty(getPmName())).append("\"");
        sb.append(",=\"").append(getBalance()).append("\"");
        sb.append(",=\"").append(getWithdrawStatus()).append("\"");
        sb.append("\r\n");
        return sb.toString();
    }
}
